package com.gxa.service.impl;


import com.gxa.entity.ComboItems;
import com.gxa.mapper.ItemsMapper;
import com.gxa.service.ItemsService;
import com.gxa.vo.ItemsVo;
import com.gxa.vo.ItemsVo1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemsServiceImpl implements ItemsService {

    @Autowired
    private ItemsMapper itemsMapper;

    @Override
    public List<ItemsVo> QueryItemsALL() {
        return this.itemsMapper.QueryItemsALL();
    }

    @Override
    public List<ItemsVo> QueryItems(String combo) {
        return this.itemsMapper.QueryItems(combo);
    }

    @Override
    public List<String> PreQueryComboName() {
        return this.itemsMapper.PreQueryComboName();
    }

    @Override
    public ItemsVo PreQueryItems(ItemsVo itemsVo) {
        return this.itemsMapper.PreQueryItems(itemsVo);
    }

    @Override
    public List<String> QueryComboNameByItemsId(String itemsId) {
        return this.itemsMapper.QueryComboNameByItemsId(itemsId);
    }

    @Override
    public void EditItems(ItemsVo1 itemsVo1) {
        this.itemsMapper.EditItems(itemsVo1);
    }

    @Override
    public void EditComboItems(ComboItems comboItems) {
        this.itemsMapper.EditComboItems(comboItems);
    }

    @Override
    public void addItems(ItemsVo1 itemsVo1) {
        this.itemsMapper.addItems(itemsVo1);
    }

    @Override
    public String QueryComboId(String comboName) {
        return this.itemsMapper.QueryComboId(comboName);
    }

    @Override
    public void DelItems(ItemsVo1 itemsVo1) {
        this.itemsMapper.DelItems(itemsVo1);
    }

    @Override
    public void DelCombosItems(ComboItems comboItems) {
        this.itemsMapper.DelCombosItems(comboItems);
    }

}
